import index from '../view/index.vue'
import Router from 'vue-router'
import Vue from 'vue'
import machile1 from '../view/machile1.vue'
import machile2 from '../view/machile2.vue'
import machile3 from '../view/machile3.vue'
import machile4 from '../view/machile4.vue'
import machile5 from '../view/machile5.vue'
import jieshao from '../view/jieshao.vue'
import hexin from '../view/hexin.vue'
import asdfgh from '../view/asdfgh.vue'
import no1 from '../view/no1.vue'
import no2 from '../view/no2.vue'
import no3 from '../view/no3.vue'
import no4 from '../view/no4.vue'
import no5 from '../view/no5.vue'
import no6 from '../view/no6.vue'
import no7 from '../view/no7.vue'
import no8 from '../view/no8.vue'
import no9 from '../view/no9.vue'
import no10 from '../view/no10.vue'
Vue.use(Router)
let routes=[
    {path:'/',name:'index',component:index},
    {path:'/machile1',name:'machile1',component:machile1},
    {path:'/machile2',name:'machile2',component:machile2},
    {path:'/machile3',name:'machile3',component:machile3},
    {path:'/machile4',name:'machile4',component:machile4},
    {path:'/machile5',name:'machile5',component:machile5},
    {path:'/jieshao',name:'jieshao',component:jieshao},
    {path:'/hexin',name:'hexin',component:hexin,children:[
        {path:'/:id/:c',name:'no1',component:no1},
        {path:'no2:id',name:'no2',component:no2},
        {path:'no3:id',name:'no3',component:no3},
        {path:'no4:id',name:'no4',component:no4},
        {path:'no5:id',name:'no5',component:no5},
        {path:'no6:id',name:'no6',component:no6},
        {path:'no7:id',name:'no7',component:no7},
        {path:'no8:id',name:'no8',component:no8},
        {path:'no9:id',name:'no9',component:no9},
        {path:'no10:id',name:'no10',component:no10},
    ]},
    {path:'/asdfgh:id',name:'asdfgh',component:asdfgh},
]


export default new Router({
    // mode:'history',
    // linkActiveClass:'active',
    routes,
})